package com.codi.bus.core.dao.impl;

import com.codi.base.dao.v2.GeneratedBaseDaoImpl;
import com.codi.bus.core.dao.UserAssetsDao;
import com.codi.bus.core.dao.WalletAssetsDao;
import com.codi.bus.core.domain.PortfolioTrade;
import com.codi.bus.core.domain.UserAssets;
import com.codi.bus.core.domain.WalletAssets;
import org.springframework.stereotype.Repository;

/**
 * Created by asus on 2017/12/6.
 */
@Repository("walletAssetsDao")
public class WalletAssetsDaoImpl extends GeneratedBaseDaoImpl<WalletAssets> implements WalletAssetsDao {
    @Override
    public Long insertByCode( WalletAssets walletAssets) {
        super.insert(this.generateStatement("insert"), walletAssets);
        return walletAssets.getWaWalletAssetsId();
    }

}
